package controllers;

import org.apache.commons.lang.StringEscapeUtils;

import models.Article;
import models.Clob;
import play.mvc.Controller;

/**
 * 文章控制器
 * 
 * @author ultrafrog
 * @version 1.0, 2014-12-10
 * @since 1.0
 */
public class Articles extends Controller {

	/**
	 * 文章内容
	 * 
	 * @param id
	 */
	public static void detail(String id) {
		Article article = Article.findById(id);
		Resources.article_parse(article);
		
		renderArgs.put("article", article);
		render();
	}
}
